# base image
FROM index.mindcoder.cn/docker/alpine/nodejs

# MAINTAINER
MAINTAINER zw@sdzw.com

# run command
RUN apk add --no-cache git python3 py3-pip && echo '[global]' > /etc/pip.conf && echo 'index-url = https://mirrors.ustc.edu.cn/pypi/web/simple' >> /etc/pip.conf && echo 'format = columns' >> /etc/pip.conf && pip install --upgrade pip
RUN git clone https://gitee.com/yanjingtu/pip-tool.git

WORKDIR /pip-tool
RUN cnpm install

# ports
EXPOSE 3001

# volumes
VOLUME ["/mnt"]

# main command
CMD ["/bin/sh", "./startServer.sh"]

